let firstName = 'lili';
let lastName = 'li';

// url   ?pagenum=1&limit=10  {pagenum:1,limit:10}

let format = (str) => {
    if(str.includes('?')){
        str = str.slice(1);
    }

    return str.split('&').reduce((pre,cur) => {
        let arr = cur.split('=');
        pre[arr[0]] = arr[1];
        return pre
    },{})
}

// export {firstName as f,lastName as l,format}

export {firstName,lastName}

// export default format

// export 1

let m = 3;
// export m;

export default m;


// format('?pagenum=1&limit=10'); //['pagenum=1','limit=10'] [pagenum,1] [limit,10]






